Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(shared-data): Fix the pipette schemas, tests #13949

Merged
merged 1 commit into from
Nov 9, 2023
Merged

Conversation

sfoster1
Copy link
Member

@sfoster1 sfoster1 commented Nov 8, 2023

The tests that were supposed to ajv the pipette definitions weren't set up properly, and the tests that were supposed to test that the tests were set up properly weren't set up properly, so we weren't testing the schemas so the schemas were wrong. Fix the schema-test setup, the test-setup-schema-test setup, and the schema.

@sfoster1 sfoster1 requested review from a team as code owners November 8, 2023 20:27
@sfoster1 sfoster1 requested review from jerader and removed request for a team November 8, 2023 20:27
Copy link

codecov bot commented Nov 8, 2023

Codecov Report

Merging #13949 (f2ca4d0) into edge (7258da8) will decrease coverage by 0.04%.
Report is 2 commits behind head on edge.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             edge   #13949      +/-   ##
==========================================
- Coverage   70.79%   70.76%   -0.04%     
==========================================
  Files        2505     2478      -27     
  Lines       70620    69876     -744     
  Branches     8663     8501     -162     
==========================================
- Hits        49997    49447     -550     
+ Misses      18501    18332     -169     
+ Partials     2122     2097      -25     
Flag Coverage Δ
app 68.05% <ø> (-0.01%) ⬇️
components 63.15% <ø> (ø)
protocol-designer 45.81% <ø> (ø)
shared-data 72.98% <ø> (-0.15%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 28 files with indirect coverage changes

The tests that were supposed to ajv the pipette definitions weren't set
up properly, and the tests that were supposed to test that the tests
were set up properly weren't set up properly, so we weren't testing the
schemas so the schemas were wrong. Fix the schema-test setup, the
test-setup-schema-test setup, and the schema.
Copy link
Contributor

@ahiuchingau ahiuchingau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Copy link
Contributor

@ryanthecoder ryanthecoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@Laura-Danielle Laura-Danielle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oopsie and lgtm

@@ -18,6 +18,7 @@ def test_check_all_models_are_valid() -> None:
"ninety_six_channel": "96",
"eight_channel": "multi",
}
assert os.listdir(paths_to_validate), "You have a path wrong"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO yes, we do it in the js tests too

@sfoster1 sfoster1 merged commit c474991 into edge Nov 9, 2023
59 checks passed
@sfoster1 sfoster1 deleted the fix-pipette-schemas branch November 9, 2023 22:05
ncdiehl11 pushed a commit that referenced this pull request Nov 14, 2023
The tests that were supposed to ajv the pipette definitions weren't set
up properly, and the tests that were supposed to test that the tests
were set up properly weren't set up properly, so we weren't testing the
schemas so the schemas were wrong. Fix the schema-test setup, the
test-setup-schema-test setup, and the schema.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants